#FROM findepi/graalvm:java17-native
FROM openjdk:17.0.2-oraclelinux8

MAINTAINER fengyexjtu@126.com

RUN mkdir -p /setaria/sentinel-dashboard/logs \
    /setaria/skywalking/agent

WORKDIR /setaria/sentinel-dashboard

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""

EXPOSE 8718

ADD ./target/setaria-sentinel-dashboard.jar ./app.jar

ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \
           #-Dskywalking.agent.service_name=setaria-sentinel-dashboard \
           #-javaagent:/setaria/skywalking/agent/skywalking-agent.jar \
           -jar app.jar ${JAVA_OPTS}
